home *** CD-ROM | disk | FTP | other *** search
/ Aminet 3 / Aminet 3 - July 1994.iso / Aminet / gfx / pbm / manuals.lha / netpbm / man / rawtopgm.man < prev    next >
Text File  |  1994-03-01  |  2KB  |  67 lines

  1.  
  2.  
  3.  
  4.      rawtopgm(1)           AMIGA (15 June 1993)            rawtopgm(1)
  5.  
  6.  
  7.  
  8.      NAME
  9.           rawtopgm - convert raw grayscale bytes into a portable
  10.           graymap
  11.  
  12.      SYNOPSIS
  13.           rawtopgm [-headerskip N] [-rowskip N] [-tb|-topbottom]
  14.           [width height] [imagedata]
  15.  
  16.      DESCRIPTION
  17.           Reads raw grayscale bytes as input.  Produces a portable
  18.           graymap as output.  The input file is just grayscale bytes.
  19.           If you don't specify the width and height on the command
  20.           line, the program will check the size of the image and try
  21.           to make a quadratic image of it. It is an error to supply a
  22.           non quadratic image without specifying width and height.
  23.           The maxval is assumed to be 255.
  24.  
  25.      OPTIONS
  26.           -headerskip
  27.                If the file has a header, you can use this flag to skip
  28.                over it.
  29.  
  30.           -rowskip
  31.                If there is padding at the ends of the rows, you can
  32.                skip it with this flag.  Note that rowskip can be a
  33.                real number.  Amazingly, I once had an image with 0.376
  34.                bytes of padding per row.  This turned out to be due to
  35.                a file-transfer problem, but I was still able to read
  36.                the image.
  37.  
  38.           -tb -topbottom
  39.                Flips the image upside down.  The first pixel in a pgm
  40.                file is in the lower left corner of the image.  For
  41.                conversion from images with the first pixel in the
  42.                upper left corner (e.g. the Molecular Dynamics and
  43.                Leica confocal formats) this flips the image right.
  44.                This is equivalent to rawtopgm [file] | pnmflip -tb .
  45.  
  46.      BUGS
  47.           If you don't specify the image width and height, the program
  48.           will try to read the entire image to a memory buffer. If you
  49.           get a message that states that you are out of memory, try to
  50.           specify the width and height on the command line. Also, the
  51.           -tb option consumes much memory.
  52.  
  53.      SEE ALSO
  54.           pgm(5), rawtoppm(1), pnmflip(1)
  55.  
  56.      AUTHORS
  57.           Copyright (C) 1989 by Jef Poskanzer.
  58.           Modified June 1993 by Oliver Trepte, oliver@fysik4.kth.se
  59.  
  60.  
  61.  
  62.  
  63.      Page 1                                           (printed 3/1/94)
  64.  
  65.  
  66.  
  67.